<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class LabelTask extends Model
{
    protected $table = 'label_task';

    protected $fillable = [
        'name',
        'count',
        'limit_sum',
        'time',
        'released',
        'path'
    ];

    public function label()
    {
        return $this->hasMany(Label::class, 'task_id', 'id');
    }
}
